package org.wang.generalcode.modules.sys.converter;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.wang.generalcode.modules.sys.pojo.entity.GenConfig;
import org.wang.generalcode.modules.sys.pojo.entity.GenFieldConfig;

import java.util.List;

/**
 * 代码生成配置转换器
 *
 * @author wangchong
 * @since 2.10.0
 */
@Mapper(componentModel = "spring")
public interface GenConfigConverter {

//    @Mapping(source = "genConfig.tableName", target = "tableName")
//    @Mapping(source = "genConfig.businessName", target = "businessName")
//    @Mapping(source = "genConfig.moduleName", target = "moduleName")
//    @Mapping(source = "genConfig.packageName", target = "packageName")
//    @Mapping(source = "genConfig.entityName", target = "entityName")
//    @Mapping(source = "genConfig.author", target = "author")
//    @Mapping(source = "fieldConfigs", target = "fieldConfigs")
//    GenConfigForm toGenConfigForm(GenConfig genConfig, List<GenFieldConfig> fieldConfigs);

//    List<GenConfigForm.FieldConfig> toGenFieldConfigForm(List<GenFieldConfig> fieldConfigs);

//    GenConfigForm.FieldConfig toGenFieldConfigForm(GenFieldConfig genFieldConfig);

//    GenConfig toGenConfig(GenConfigForm formData);

//    List<GenFieldConfig> toGenFieldConfig(List<FieldConfig> fieldConfigs);

//    GenFieldConfig toGenFieldConfig(FieldConfig fieldConfig);

}